#include "ds/stringutils.h"
#include "util/tester.h"
#include <stdio.h>

int
main ( int argc, char * argv[] )
{
	(void)argc;
	(void)argv;

	string * teststring = SU_new(SU_MAX_PATH_LENGTH);
	SEx_TestBool( "SU_new", teststring != NULL, true );

	SU_free(teststring);
	SEx_TestBool( "SU_free", true, true );

	teststring = SU_new(SU_MAX_PATH_LENGTH);
	SU_set( teststring, "123" );
	SEx_TestLines( "SU_set", teststring->s, "123" );

	SU_cat( teststring, "4" );
	SEx_TestLines( "SU_cat", teststring->s, "1234" );

	SU_free(teststring);
	teststring = SU_simple("aaa");
	SEx_TestLines( "SU_simple", teststring->s, "aaa" );
}
